﻿<%@ Page Language="c#" CodeBehind="EditTache.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlowPages.EditTachePage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>EditTache</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form id="EditTache" method="post" runat="server">
    <uds:PageTitle runat="server" HintImage="~/DataImages/DocFlow.gif" Title="文档流转" />
    <div style="height: 24px; padding-top: 4px; text-align: center; vertical-align: middle; background: url(../../../Images/treetopbg.jpg) repeat-x left top;">
      <span>流程名称：<asp:Label ID="labFlowName" runat="server" /></span><span style="padding-left: 20px;"><asp:Label ID="labStep" runat="server" /></span>
    </div>
    <div style="padding: 10px; text-align: center;">
      <table cellspacing="0" cellpadding="4">
        <tr>
          <td align="right">步骤名称：</td>
          <td>
            <asp:TextBox ID="txtTacheName" runat="server" CssClass="inputcss longInput" />
            <asp:RequiredFieldValidator runat="server" Display="None" ErrorMessage="请输入步骤名称" ControlToValidate="txtTacheName" />
          </td>
        </tr>
        <tr>
          <td align="right">是否可以结束：</td>
          <td>
            <asp:RadioButton ID="chkFinishYes" runat="server" Text="是" GroupName="cboFinish" /><asp:RadioButton ID="chkFinishNO" runat="server" Text="否" GroupName="cboFinish" Checked="True" />&nbsp;&nbsp; (说明：该步骤的审批者是否可以强行完成整个流程)</td>
        </tr>
        <tr>
          <td align="right">是否汇签：</td>
          <td>
            <script type="text/javascript">
              //<!--
              function fnResetPassNum(checkBox) {
                var textbox = document.getElementById("<%= txtPassNum.ClientID %>");
                if (checkBox.checked === true) {
                  textbox.setAttribute("last_value", textbox.value);
                  textbox.value = "-1";
                } else {
                  var lastValue = textbox.getAttribute("last_value");
                  if (lastValue === null) {
                    lastValue = "0";
                  }
                  textbox.value = lastValue;
                }
              }
              //-->
            </script>
            <asp:RadioButton ID="radPassNumYes" runat="server" Text="会签" GroupName="PassNum" AutoPostBack="True" />
            <asp:RadioButton ID="radPassNumNo" runat="server" Text="不会签" GroupName="PassNum" Checked="True" AutoPostBack="True" />
            <span id="PassNum" style="display: none; margin-left: 40px;" runat="server">（会签人数:
              <asp:TextBox ID="txtPassNum" runat="server" Width="46px" Height="19px" CssClass="inputcss">0</asp:TextBox>
              <input id="chkAllPass" onclick="fnResetPassNum(this);" type="checkbox" name="chkAllMember" runat="server">全体通过） </span>
            <asp:RegularExpressionValidator runat="server" Display="None" ErrorMessage="请输入数字" ControlToValidate="txtPassNum" ValidationExpression="-{0,1}\d+" />
          </td>
        </tr>
        <tr>
          <td align="right">流转规则：</td>
          <td>
            <uds:FlowRuleDropDownList runat="server" ID="cboFlowRule" CssClass="longInput" />
          </td>
        </tr>
        <tr>
          <td valign="top" align="right">步骤简介：</td>
          <td>
            <asp:TextBox ID="txtRemark" runat="server" Rows="8" TextMode="MultiLine" CssClass="longInput" />
          </td>
        </tr>
        <tr>
          <td valign="middle" align="right">
            <p>
              对下一个步骤的消息提醒设置：
            </p>
          </td>
          <td>
            <asp:CheckBox ID="chkLocalAlert" runat="server" Text="固定提醒" /><span id="spanAlert" style="display: none" runat="server">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
        </tr>
        <tr>
          <td valign="middle" align="right">对一定时间内未完成审批提醒：</td>
          <td>
            <asp:CheckBox ID="chkUrgencyAlert" runat="server" Text="催办提醒" AutoPostBack="True" />
            <span style="padding-left: 60px;">完成时间:<asp:TextBox ID="txtBaseHour" runat="server" Width="42px" Height="18px" />分钟</span> <span style="padding-left: 10px;">周期:<asp:TextBox ID="txtPeriod" runat="server" Width="31px" Height="18px" />分钟</span> <span style="padding-left: 10px;">次数:<asp:TextBox ID="txtCycTimes" runat="server" Width="37px" Height="18px" /></span>
            <asp:RegularExpressionValidator runat="server" Display="None" ControlToValidate="txtBaseHour" ErrorMessage="填写正确的小时" ValidationExpression="\d+" />
            <asp:RegularExpressionValidator runat="server" Display="None" ControlToValidate="txtPeriod" ErrorMessage="填写正确的周期" ValidationExpression="\d+" />
            <asp:RegularExpressionValidator runat="server" Display="None" ControlToValidate="txtCycTimes" ErrorMessage="填写正确的次数" ValidationExpression="\d+" />
            <asp:RequiredFieldValidator runat="server" Display="None" ErrorMessage="输入循环次数" ControlToValidate="txtBaseHour" />
            <asp:RequiredFieldValidator runat="server" Display="None" ErrorMessage="输入周期" ControlToValidate="txtPeriod" />
            <asp:RequiredFieldValidator runat="server" Display="None" ErrorMessage="输入完成时间" ControlToValidate="txtCycTimes" />
          </td>
        </tr>
        <tr>
          <td align="center" colspan="2" style="padding: 10px;">
            <asp:ValidationSummary runat="server" EnableClientScript="true" DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" />
            <asp:Button ID="cmdPrevious" AccessKey="P" runat="server" Width="58px" CssClass="buttoncss" Text="上一步" CausesValidation="False" />
            <asp:Button ID="cmdNext" AccessKey="N" runat="server" Width="60px" CssClass="buttoncss" Text="下一步" />
            <asp:Button ID="cmdDelete" AccessKey="D" runat="server" Width="58px" CssClass="buttoncss" Text="删除" CausesValidation="False" />
            <asp:Button ID="cmdFinish" AccessKey="F" runat="server" Width="73px" CssClass="buttoncss" Text="完成设计" />
            <asp:Button ID="cmdCancel" AccessKey="C" runat="server" Width="74px" CssClass="buttoncss" Text="取消设计" CausesValidation="False" />
            <asp:Button ID="cmdReturn" AccessKey="C" runat="server" Width="55px" CssClass="buttoncss" Text="返回" CausesValidation="False" />
          </td>
        </tr>
      </table>
    </div>
  </form>
</body>
</html>
